import React, { memo, useState, useEffect, useRef, useCallback } from "react";
import { useDispatch, useSelector, shallowEqual } from "react-redux";
import {RightSignWrapper} from './style'
import { CalendarOutlined } from "@ant-design/icons";
import {timeTips} from '@/utils/time'
import { Button, Radio,message,  Space } from 'antd';

export default memo(function RightSign() {
    const [tips, settips] = useState(timeTips())
    console.log(tips)
    const errClick=()=>{
        message.warning('该功能暂未对外开放');
    }
    return (
        <RightSignWrapper>
            <div className="content">
                <div>
                    <CalendarOutlined />
                    <h3>{tips}</h3>
                    <Button onClick={()=>{errClick()}} size='small' type="primary">去签到</Button>
                   
                </div>
                <div>点亮你在社区的每一天</div>
            </div>
        </RightSignWrapper>
    )
})
